def decorator1(func):
    def make_decorater(*args,**kwargs): 
        print('decorator1 start')
        test_func = func(*args,**kwargs) 
        print('decorator1 end') 
        return test_func 
    return make_decorater
 
def decorator2(func):
    def make_decorater(*args,**kwargs):  
        print('decorator2 start')
        test_func = func(*args,**kwargs)  
        print('decorator2 end')
        return test_func  
    return make_decorater
 
@decorator1
@decorator2
def test():
    print('我是被装饰的函数')

test()

def decorated_test():
    ret = None
    print('decorator1 start')
    print('decorator2 start')
    ret = test()
    print('decorator2 end')
    print('decorator1 end') 